package cn.wfmiss.spring6.iocxml.diTest;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wfmiss
 * @Date: 2023/12/31/12:54
 * @Description: 部门类
 */
public class Dept {
    private String dname;

    // 一个部门有很多员工
    private List<Emp> empList;

    public List<Emp> getEmpList() {
        return empList;
    }

    public void setEmpList(List<Emp> empList) {
        this.empList = empList;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public void info() {

        System.out.println("部门名称：" + dname);
        System.out.println("部门员工：" + empList);
    }
}
